#include "cpu/exec/template-start.h"

#define instr pop

static void do_execute() {
    DATA_TYPE tmp = swaddr_read(reg_l(R_ESP), 4);
    reg_l(R_ESP) += 4;
    OPERAND_W(op_src, tmp);
    print_asm("pop\t%s", REG_NAME(op_src->reg));
}

make_instr_helper(r)
make_instr_helper(rm)

#include "cpu/exec/template-end.h"